<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<style>
    .pagination{margin:0;}
</style>
<ol class="breadcrumb">
    <li><a href="/Admin">首页</a></li>
    <li class="active">修改教师</li>
</ol>
<form action="__ROOT__/Admin/Teacher/modifyTeacher" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$data.id}">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>图片：</div>
        <div class="col-lg-3">
            <image src="{$data['pic']}" height="100" />
            <input type="file" name="pic"  class="form-control" />
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>教师名：</p></div>
        <div class="col-lg-6"><input type="text" name="name" value="{$data.name}" class="form-control"/></div>
    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>教师等级：</p></div>
        <div class="col-lg-6">
            <select class="form-control" name="level" id="level">
                <option value="1">特级教师</option>
                <option value="2">普通教师</option>
            </select>
        </div>

    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>毕业院校：</p></div>
        <div class="col-lg-6"><input type="text" name="school" value="{$data.school}" class="form-control"/></div>
    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>学科：</p></div>
        <div class="col-lg-6">
            <select class="form-control" name="subjectsId" id="subjectsId">
                <foreach name="subjectsList" item="vo">
                    <option value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
        </div>

    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>领域：</p></div>
        <div class="col-lg-6">
            <select class="form-control" name="teachingId" id="teachingId">
                <foreach name="teachingList" item="vo">
                    <option value="{$vo.id}">{$vo.name}</option>
                </foreach>
            </select>
        </div>
    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3 text-right"><p><span class="red">*</span>简介：</p></div>
        <div class="col-lg-6"><textarea name="content" class="form-control">{$data.content}</textarea></div>
    </div>
    <br/>

    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<script>
    $("#level").val("{$data.level}");
    $("#subjectsId").val("{$data.subjectsId}");
    $("#teachingId").val("{$data.teachingId}");
</script>
<include file="./Application/Admin/View/Public/footer.html" />